using System;
using System.Collections.Generic;
using Pine.Lexer;

namespace Pine.SourceParser.Tree
{
	public class PostfixExpression : Expression
	{
		public Expression baseExpr;
		public bool increment;
		
		public PostfixExpression ()
		{
		}
		
		public PostfixExpression (Expression expr, bool increment) {
			baseExpr = expr;
			this.increment = increment;
		}
		
		public override string ToString ()
		{
			return "(" + baseExpr.ToString() + ")" + (increment ? "++" : "--");
		}
	}
}

